package npr.gui;  
import processing.core.*;

public class Field extends GUI{
        
    public Field(int xpos, int ypos, int width, int height){

	super(xpos, ypos, width, height);
    }
    
    public void draw(){

	parent.noStroke();
	parent.fill(255);
	parent.rect(xpos, ypos, width, height);

	if(enabled) parent.stroke(230);
	else parent.stroke(240);
	parent.line(xpos+width, ypos, xpos+width, ypos+height);
	parent.line(xpos, ypos+height, xpos+width, ypos+height); 
	if(enabled) parent.stroke(180);
	else parent.stroke(220);
	//System.out.println(parent.mouseX + " " + parent.mouseY);
	parent.line(xpos+width-1, ypos+1, xpos+width-1, ypos+height-1);
	parent.line(xpos+1, ypos+height-1, xpos+width-1, ypos+height-1);

	if(enabled) parent.stroke(100);
	else parent.stroke(150);
	parent.line(xpos, ypos, xpos, ypos+height);
	parent.line(xpos, ypos, xpos+width+1, ypos); 
	if(enabled) parent.stroke(0);
	else parent.stroke(100);
	parent.line(xpos+1, ypos+1, xpos+1, ypos+height-1);
	parent.line(xpos+1, ypos+1, xpos+width, ypos+1); 

    }
}
